<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
	<!--设置网页图标-->
	<link rel="icon" href="images/min-logo.ico" type="images/x-ico" />
    <title>商品收藏</title>
    <link rel="stylesheet icon" type="text/css" href="${pageContext.request.contextPath}/admin/images/favicon.ico">
    <!-- 运用bookstrap时需要引入 -->
    <meta http-equiv="x-ua-compatible" content="IE=edge">
    <link href="css/bootstrap.min.css" rel="stylesheet">

    <!-- 当页面需要jquery才引入 -->
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.js"></script>
    <!-- <link rel="stylesheet" href="../css/reset.css"> -->
    <link rel="stylesheet" href="css/collect.css">
    <link rel="stylesheet" href="css/base.css">
</head>

<body>
    <%@include file="header.jsp"%>

    <!-- 标题 我的购物车-->
    <div class="container">
        <div class="toptitle col-xs-12 col-md-12 col-sm-12 col-lg-12">
            <span class="line"></span>
            <p style="display: inline-block; font-size: 18px;">商品收藏</p>
        </div>
    </div>

	<div class="container" >
        <div style="width: 1170px;margin: 0 auto;">
            <c:forEach items="${gList}" var="g" varStatus="i">
                <div class="goodsbox col-xs-6 col-md-3 col-lg-2" >
                    <a href="${pageContext.request.contextPath}/getGoodsById?id=${g.id}" class="goodsimg">
                        <img src="image/${g.picture}" alt="">
                    </a>
                    <a href="${pageContext.request.contextPath}/getGoodsById?id=${g.id}" class="goodsname">
                        <p style="text-align: center">${g.name}</p>
                    </a>
                    <p class="goodsprice">￥${g.price}</p>
                </div>
            </c:forEach>

        </div>

    </div>
</body>

</html>